package com.lecture.junit.tdd.example;

import java.util.Calendar;

public interface IAccount {

    public Boolean passwordMatches(String pass);

    public void setLoggedIn();

    public void setRevoked();

    public boolean isLoggedIn();

    public boolean isRevoked();

    public boolean isExpired();

    public void changePassword(String oldPass, String newPass) throws AccountIsNotLoggedInException, OldPasswordException;

    public String getUserName();

    public Calendar getLastAccessDate();
}
